﻿using UnityEngine;
using System.Collections;

public class GameController : MonoBehaviour {

	public GameObject goldClone;
		
	// Use this for initialization
	void Start () {
		Invoke ("CloneGold", 1);
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void Exit(){
		Application.Quit ();
	}

	public void CloneGold(){
		Instantiate(goldClone, new Vector3(Random.Range(-1.3f,0.4f),2.625f,Random.Range(0.8f,2.5f)),goldClone.transform.rotation);
		Invoke ("CloneGold", 3);
	}
}
